// utils/location.js
export function initMap() {
  // 初始化腾讯地图API
  const script = document.createElement('script');
  script.src = `https://map.qq.com/api/js?v=2.exp&key=你的腾讯地图API密钥`;
  document.head.appendChild(script);
}

export function getLocation(successCallback, errorCallback) {
  if (navigator.geolocation) {
    navigator.geolocation.getCurrentPosition(successCallback, errorCallback);
  } else {
    alert('Geolocation is not supported by this browser.');
  }
}
